package com.wy.protocol;

/**
 * Created by clei on 15/9/23.
 */
public class PageQuery {

    private Integer pageSize;
    private Long startId;
    private Long startDate;

    private static final Integer PAGE_SIZE = 10;

    public PageQuery(){

    }

    public PageQuery(Integer pageSize){
        if(pageSize!=null){
            this.pageSize = pageSize;
        }
    }

    public Integer getPageSize() {
        if(pageSize==null){
            return PAGE_SIZE;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getStartId() {
        return startId;
    }

    public void setStartId(Long startId) {
        this.startId = startId;
    }

    public Long getStartDate() {
        return startDate;
    }

    public void setStartDate(Long startDate) {
        this.startDate = startDate;
    }
}
